import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
  path: '/',
  name: 'login',
  component: () =>
    import( /* webpackChunkName: "about" */ '../views/Login.vue')
},
{
  path: '/home',
  name: 'Home',
  component: () =>
    import( /* webpackChunkName: "about" */ '../views/Home.vue')
},
{
  path: '/entrench',
  name: 'Entrench',
  component: () =>
    import( /* webpackChunkName: "about" */ '../views/entrench.vue')
},
{
  path: '/policy',
  name: 'Policy',
  component: () =>
    import( /* webpackChunkName: "about" */ '../views/policy.vue')
},
{
  path: '/particulars/:id',
  name: 'particulars',
  component: () =>
    import( /* webpackChunkName: "about" */ '../views/particulars.vue')
},
{
  path: '/datalist',
  name: 'datalist',
  component: () =>
    import( /* webpackChunkName: "about" */ '../views/dataList.vue')
},
{
  path: '/policyparticulars/:id',
  name: 'policyparticulars',
  component: () =>
    import( /* webpackChunkName: "about" */ '../views/policyparticulars.vue')
},
{
  path: '/suggest',
  name: 'suggest',
  component: () =>
    import( /* webpackChunkName: "about" */ '../views/suggest.vue')
}
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router